{% extends "./inc/base.html" %} {% block content %}

<!-- -->
<section>
	<div class="container">
		<div class="row">
			<!-- LEFT -->
			{#% include "./inc/user_left.html" %#}
			<!-- RIGHT -->
			<div class="col-md-12">
				<div class="col-md-6">
					<h4 class="page-header margin-top-0"><i class="fa fa-reorder fa-lg text-default"></i>
					{{controller.meta_title}}
					</h4>
				</div>
				<!--<div class="col-md-6 text-right">
					<h4 class="page-header margin-top-0 margin-right-10">总余额：<span style="color: #ff0000">{{yecount}}</span></h4>
				</div>-->
				<!--<form role="form" method="post" class="form-horizontal form-info">
					<div class="form-group">
						<div class="col-md-12">

						</div>
					</div>
				</form>
				<div class="table-responsive">
					<table class="table table-striped table-vertical-middle">
						<thead>
						<tr>
							<th>往来公司</th>
							<th>余额</th>
							<th>操作</th>
						</tr>
						</thead>
						<tbody>
						{% for item in yelist %}
						<tr>
							<td>{{item.gsmc}}</td>
							<td>{{item.ye}}</td>
							<td><a class="link" href="companydetail?gs={{item.pk_org}}"><i class="fa fa-eye"></i>  {% if controller.user.groupid == 9 %}收款明细{% elif controller.user.groupid == 10 %}付款明细{% endif %}</a></td>
						</tr>
						{% endfor %}
						</tbody>
					</table>
				</div>-->
				<div class="col-md-12">
					{% if controller.user.groupid == 9 %} <!--客户-->
					<iframe src="http://218.24.153.126:8089/WebReport/ReportServer?formlet=HJ%2Fmh%2F007_MH_KHZMXX.frm&user_pk={{controller.user.user_pk}}" height="428px" width="100%"></iframe>
					{% elif controller.user.groupid == 10 %} <!--供应商-->
					<iframe src="http://218.24.153.126:8089/WebReport/ReportServer?formlet=HJ%2Fmh%2F007_MH_ZMXX.frm&user_pk={{controller.user.user_pk}}" height="428px" width="100%"></iframe>
					{% endif %}
				</div>
			</div>
		</div>
	</div>
</section>
<!-- / -->

{% endblock %}